mmc: uniphier-sd: Factor out register IO
authorMarek Vasut <[email protected]>
Fri, 21 Jul 2017 21:24:32 +0000 (23:24 +0200)
committerJaehoon Chung <[email protected]>
Fri, 22 Sep 2017 14:23:23 +0000 (23:23 +0900)
commit3d7b1d1bc4474d2a85dc8d1a8001258dce56806a
tree98f43b6790decddd548f3672b56472aaa15465cd
parente884656c2c0b2406b9bf99ea76f5a8c75128a331
mmc: uniphier-sd: Factor out register IO

This patch prepares the driver to support controller(s) with registers
at locations shifted by constant. Pull out the readl()/writel() from
the driver into separate functions, where the adjustment of the register
offset can be easily contained.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Masahiro Yamada <[email protected]>
Cc: Jaehoon Chung <[email protected]>
drivers/mmc/uniphier-sd.c